/*
 * @Author: Zhouhai 497675647@qq.com
 * @Date: 2022-11-16 13:47:44
 * @LastEditors: Zhouhai 497675647@qq.com
 * @LastEditTime: 2022-11-25 10:19:08
 */
import request from '@/utils/request'
import {SysPostDomain} from '@/type.d/system/post';

// 查询岗位信息列表
export function listPost(query: SysPostDomain) {
  return request('/system/post/list',{
    method: 'get',
    params: query
  })
}

// 查询岗位信息详细
export function getPost(postId: string) {
  return request({
    url: '/system/post/' + postId,
    method: 'get'
  })
}

// 新增岗位信息
export function addPost(data: SysPostDomain) {
  return request('/system/post',{
    method: 'post',
    data: data
  })
}

// 修改岗位信息
export function updatePost(data: SysPostDomain) {
  return request('/system/post',{
    method: 'put',
    data: data
  })
}

// 删除岗位信息
export function delPost(postId: string) {
  return request('/system/post/' + postId,{
    method: 'delete'
  })
}
